function [ HtoA_error,HtoB_error, TtoA_error, TtoB_error] = compareLocations( A,B,t,  headPrev, tailPrev, thetaPrev, Vprev, tPrev, thetaPrev )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here

  
  Vx = V*cos(thetaPrev);
  Vy = V*sin(thetaPrev);
  delta = [Vx * (t - tPrev),Vy *(t - tPrev)] ;
  H_pred = headPrev + delta;
  T_pred = tailPrev + delta;
  
  HtoA_error = norm(H_pred - A,2);
  HtoB_error = norm(H_pred- B,2);
  TtoA_error = norm(T_pred- A,2);
  TtoB_error = norm(T_pred - B,2);
  
end

